package com.easydev.server.dao;

import com.easydev.server.domain.UserInfo;

public abstract class AbstractCommonRepo implements Repository{
    @Override
    public UserInfo get(String key) throws Exception {
        UserInfo obj = getObj(key);
        delCred(key);
        return obj;
    }

    public abstract void delCred(String cred) throws Exception;
    public abstract UserInfo getObj(String cred) throws Exception;
}
